class RemoveSeries < ActiveRecord::Migration
  def self.up
    remove_column :broadcasts, :series_id
    remove_column :broadcasts, :type
    drop_table :series
  end

  def self.down
    create_table :series do |t|
      t.integer :program_id
      t.string :name
      t.text :description
      t.datetime :begin_at
      t.datetime :end_at
      t.timestamps
    end

    add_column :broadcasts, :type, :string
    add_column :broadcasts, :series_id, :integer
  end
end
